package summer_vacation.liqiqi.day19;

/**
 * Created by uw on 2015/8/29.
 */
public class zhi {
    public static void main(String[] args){
        int i;
        int sum=0;
        for(i=1;i<=100;i++){
            if(i%2==0){
                i=-i;
            }
        sum=sum+1/i;
        }
        System.out.println("1-1/2+1/3-1/4+....+1/99-1/100="+sum);
    }
}
